Optimal. Leaf size=11 \[ \tanh ^{-1}\left (\sqrt{\cos ^2(x)+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0352519, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {3194, 63, 207} \[ \tanh ^{-1}\left (\sqrt{\cos ^2(x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3194
Rule 63
Rule 207
Rubi steps
\begin{align*} \int \frac{\tan (x)}{\sqrt{1+\cos ^2(x)}} \, dx &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1+x}} \, dx,x,\cos ^2(x)\right )\right )\\ &=-\operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sqrt{1+\cos ^2(x)}\right )\\ &=\tanh ^{-1}\left (\sqrt{1+\cos ^2(x)}\right )\\ \end{align*}
Mathematica [A] time = 0.0103894, size = 11, normalized size = 1. \[ \tanh ^{-1}\left (\sqrt{\cos ^2(x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 10, normalized size = 0.9 \begin{align*}{\it Artanh} \left ({\frac{1}{\sqrt{1+ \left ( \cos \left ( x \right ) \right ) ^{2}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.45679, size = 81, normalized size = 7.36 \begin{align*} \frac{1}{2} \, \log \left (\frac{\sqrt{-\sin \left (x\right )^{2} + 2}}{\sin \left (x\right ) + 1} + \frac{1}{\sin \left (x\right ) + 1} - 1\right ) + \frac{1}{2} \, \log \left (-\frac{\sqrt{-\sin \left (x\right )^{2} + 2}}{\sin \left (x\right ) - 1} - \frac{1}{\sin \left (x\right ) - 1} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.87163, size = 51, normalized size = 4.64 \begin{align*} \log \left (\frac{\sqrt{\cos \left (x\right )^{2} + 1} + 1}{\cos \left (x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan{\left (x \right )}}{\sqrt{\cos ^{2}{\left (x \right )} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16387, size = 36, normalized size = 3.27 \begin{align*} \frac{1}{2} \, \log \left (\sqrt{\cos \left (x\right )^{2} + 1} + 1\right ) - \frac{1}{2} \, \log \left (\sqrt{\cos \left (x\right )^{2} + 1} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]